import React from 'react'
import BaseFilter, {filterCodes} from "../Base/BaseFilter";
import BaseFormItem from "../Base/BaseFormItem";

class InputFilterBase extends BaseFilter {

    comboData = [
        filterCodes.eq, filterCodes.noEq, filterCodes.fuzzy, filterCodes.noNull, filterCodes.null
    ];

    dealCompValue(value) {
        // console.log('dealCompValue', value.target.value)
        if (value && value.target) return value.target.value;
        else return value;
    }
}

export default class InputFilter extends BaseFormItem {
    Comp = InputFilterBase
}